if quarkx.msgbox(Strings[5669] % description, MT_ERROR, MB_OK | MB_IGNORE) == MR_OK:
editor = mapeditor()
if (editor is not None) and (editor.layout is not None) and (sellist is not None):
editor.layout.explorer.sellist = sellist
return 0
def CheckMap(menu=None):
progr = quarkx.progressbar(501, len(checkitems))
try:
for i in checkitems:
result = i.onclick()
if not result:
return result
progr.progress()
finally:
progr.close()
return noproblem(menu)
#
# Global variables to update from plug-ins.
#
items = []
checkitems = []
shortcuts = {}
def onclick(menu):
pass
def SearchMenu():
"The Search menu, with its shortcuts."
sholes1 = qmenu.item("&Holes in map", sholes1click, "|Holes in map:\n\nThis function will search for a hole in your map.\n\nA map must not contain any hole, that is, there must be no path from 'inside' to 'outside' the map. All entities must be completely enclosed by polyhedrons. With this command, QuArK will search for such holes, and if it finds one, it displays an arrow that starts from an entity and goes outside through a hole or a gap. Generally, the end of the arrow is exactly in the hole.\n\nNote that the path found by QuArK is maybe not the most direct way to reach the hole, and there are maybe other holes in your map.", "intro.mapeditor.menu.html#searchmenu")
if len(checkitems)>1:
allchecks = [qmenu.item("&ALL CHECKS", CheckMap, "perform all map checks")]